﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.IRepository.SystemManager;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.Service.SystemManager
{
    public class QualificationService
    {
        private IQualificationRepository _qualificationRepository;
        public QualificationService(IQualificationRepository qualificationRepository)
        {
            _qualificationRepository = qualificationRepository;
        }
        /// <summary>
        /// 分页条件查询
        /// </summary>
        /// <param name="atleName"></param>
        /// <returns></returns>
        public List<QualificationPo> GetQualificationList(string quaName, string queLevel, DateTime? quaAnnualAuditDate)
        {
            return _qualificationRepository.GetQualificationList(quaName, queLevel, quaAnnualAuditDate);
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="Qualification"></param>
        /// <returns></returns>
        public bool GetQualificationAdd(QualificationPo Qualification)
        {
            return _qualificationRepository.GetQualificationAdd(Qualification);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool GetQualificationDel(string ids)
        {
            return _qualificationRepository.GetQualificationDel(ids);
        }
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public QualificationPo GetQualificationFan(int id)
        {
            return _qualificationRepository.GetQualificationFan(id);
        }
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="Qualification"></param>
        /// <returns></returns>
        public bool GetQualificationUpdate(QualificationPo Qualification)
        {
            return _qualificationRepository.GetQualificationUpdate(Qualification);
        }
    }
}
